package com.vict.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Slf4j
@Component
public class Common {
    public static String version1Encoding;

    private static Environment environment;

    public static String winName;

    @Autowired
    public void setEnvironment(Environment environment){
        Common.environment = environment;
    }

    @PostConstruct
    public void init(){
        winName = Common.environment.getProperty("win.name");
    }
}
